package fun.aiwith.learn.peacock.repository;

import fun.aiwith.learn.peacock.entity.User;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * @Author: tongqianwen
 * @Date: 2025/7/24
 */
public interface UserRepository extends CrudRepository<User, Long> {
    User save(User user);
    Optional<User> findByUsername(String name);
}
